package com.lagou.bean;

import com.lagou.service.TPMonitorService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

@Component
public class ConsumerComponent {

    @Reference(timeout = 10000)
    private TPMonitorService TPMonitorService;

    public String sayHello(String name) {
        return TPMonitorService.sayHello(name);
    }

    public String sayHi(String name) {
        return TPMonitorService.sayHi(name);
    }

    public String sayHey(String name) {
        return TPMonitorService.sayHey(name);
    }

}
